﻿using ORM.Resources;
using DataAnnotationsExtensions;

namespace ORM.Common.DataAnnotations
{
    /// <summary>
    /// Validates email address. Provides default localization resource settings.
    /// </summary>
    public class EmailExtendedAttribute : EmailAttribute
    {
        public EmailExtendedAttribute()
        {
            ErrorMessageResourceType = typeof(ValidationMessages);
            ErrorMessageResourceName = "Email";
        }
    }
}